import  java.util.*;
public class Main {
    public static void main(String[] args) {
        int [] arr = new int [4];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < arr.length; i++) {
            arr[i] = sc.nextInt();
            if (arr[i] < -30 || arr[i] > 30) {
                System.out.println("No");
                return;
            }
        }
        int A = (arr[0] + arr[2]) / 2;
        int B = (arr[1] + arr[3]) / 2;
        int c = (arr[3] - arr[1]) / 2;
        System.out.println(A + " " + B + " " + c);

    }
        public static void main1(String[] args) {
            Scanner sc = new Scanner(System.in);
            ArrayList<Character> arr = new ArrayList<>();
            while (sc.hasNextInt()) {
                long M = sc.nextLong();
                int N = sc.nextInt();
                int flag = 0;
                if (M < 0) {
                    flag = 1;
                }
                M = Math.abs(M);
                if (N <= 9) {
                    while (M > 0) {
                        char val = (char) ((M % N) + '0');
                        arr.add(0, val);
                        M = M / N;
                    }
                } else {
                    while (M > 0) {
                        long val = M % N;
                        if (val > 9) {
                            char val1 = (char) ((val - 10) + 'A');
                            arr.add(0, val1);
                        } else {
                            arr.add(0, (char) (val + '0'));
                        }
                        M = M / N;
                    }
                }
                if (flag == 1) {
                    arr.add(0, '-');
                }
            }
            for (char x : arr) {
                System.out.print(x);
            }
        }
    }